/**
  EG4Sim project, Anyang Normal University && IMP-CAS
  \class EG4T0
  \brief the model of T0
  \author SUN Yazhou, asia.rabbit@163.com
  \since 2024-07-15
  \date 2024-07-15 last modified
  \copyright Copyright (c) 2023-2024 IMP-CAS with LGPLv3 LICENSE
*/

#include "EG4T0.h"
#include "G4Box.hh"
#include "G4NistManager.hh"
#include "G4LogicalVolume.hh"
#include "G4VisAttributes.hh"
#include "G4PVPlacement.hh"
#include "G4Colour.hh"
#include "G4SystemOfUnits.hh"

EG4T0::EG4T0() : EG4Det(){
  // -- Material list -- //
  static G4NistManager *nist = G4NistManager::Instance();
  // plastic scintillators for T1 (EJ-232)
  auto sci = nist->FindOrBuildMaterial("G4_PLASTIC_SC_VINYLTOLUENE");

  fLV = new G4LogicalVolume(new G4Box("T0", 25.*mm, 25.*mm, 1.*mm), sci, "T0");
  SetColor(.8, .9, 1.); // milky light green
} // end ctor

EG4T0::~EG4T0(){}
